package com.gz.droolsrule.service;

import com.github.pagehelper.PageInfo;
import com.gz.droolsrule.dao.BaseRuleVariableInfoMapper;
import com.gz.droolsrule.pojo.BaseRuleVariableInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ProjectName: drools-rule
 * @Package: com.drools.rules.gz.droolsrule.service
 * @ClassName: RuleVariableService
 * @Author: gz
 * @Description:
 * @Date: 2019/5/29 21:54
 * @Version: 1.0
 */
@Service
public class RuleVariableService {
    @Autowired
    private BaseRuleVariableInfoMapper ruleVariableInfoMapper;

    /**
     * Author gz
     * 方法说明: 根据变量类型或数值类型获取变量集合信息
     *
     * @param baseRuleVariableInfo 参数
     * @param pageInfo             分页参数
     */
    public List<BaseRuleVariableInfo> findBaseRuleVariableInfoList(BaseRuleVariableInfo baseRuleVariableInfo, PageInfo pageInfo) {
        return this.ruleVariableInfoMapper.findBaseRuleVariableInfoList(baseRuleVariableInfo);
    }
}
